/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;



    
public class SupplierXmaterial implements Serializable{
    private static final long serialVersionUID = 1L;
    protected SupplierXmaterialPK supplierXmaterialPK;

    public SupplierXmaterial() {
    }

    
    public SupplierXmaterialPK getSupplierXmaterialPK() {
        return supplierXmaterialPK;
    }

    public void setSupplierXmaterialPK(SupplierXmaterialPK supplierXmaterialPK) {
        this.supplierXmaterialPK = supplierXmaterialPK;
    }
    
     @Override
    public int hashCode() {
        int hash = 0;
        hash += (supplierXmaterialPK != null ? supplierXmaterialPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SupplierXmaterial)) {
            return false;
        }
        SupplierXmaterial other = (SupplierXmaterial) object;
        if ((this.supplierXmaterialPK == null && other.supplierXmaterialPK != null) || (this.supplierXmaterialPK != null && !this.supplierXmaterialPK.equals(other.supplierXmaterialPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.SupplierXmaterial[ supplierXmaterialPK=" + supplierXmaterialPK + " ]";
    }
}
